package cn.admin.service.impl;

import cn.admin.dao.InterestRateMapper;
import cn.admin.service.InterestRateService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @Author: 毛苏宇
 * @Description: You can do it!
 * @Date: Create in 21:31 2019/4/18
 */

@Service
@Transactional(rollbackFor = Exception.class)
public class InterestRateServiceImpl implements InterestRateService {

    @Autowired
    private InterestRateMapper interestRateMapper;

    @Override
    public int modifyInterestRate(double interestRate) {
        return interestRateMapper.updateInterestRate(interestRate);
    }


}
